#define _CRT_SECURE_NO_WARNINGS 1

#include"SL.h"

void testList1()
{
	LTNode* slist = ListInit();
	ListNodePushBack(slist, 1);
	ListNodePushBack(slist, 2);
	ListNodePushBack(slist, 3);
	ListNodePushBack(slist, 4);
	ListNodePushBack(slist, 5);
	ListNodePrint(slist);
	ListNodePopBack(slist);
	ListNodePopBack(slist);
	ListNodePopBack(slist);
	ListNodePopBack(slist);
	ListNodePopBack(slist);
	ListNodePrint(slist);

}
void testList2()
{
	LTNode* slist = ListInit();
	ListNodePushFront(slist, 1);
	ListNodePushFront(slist, 2);
	ListNodePushFront(slist, 3);
	ListNodePushFront(slist, 4);
	ListNodePushFront(slist, 5);
	ListNodePrint(slist);
	ListNodePopFront(slist);
	ListNodePopFront(slist);
	ListNodePopFront(slist);
	ListNodePopFront(slist);
	ListNodePopFront(slist);
	ListNodePopFront(slist);
	ListNodePrint(slist);


}

int main()
{

	testList1();
	//testList2();
	return 0;
}